<?php
/** @var NiniosCartaNutricionalController $this */
/** @var NiniosCartaNutricional $model */
$this->breadcrumbs = array(
    'Ninios Carta Nutricionals' => array('index'),
    $model->id,
);

$this->menu = array(
    //array('label' => Yii::t('AweCrud.app', 'List') . ' ' . NiniosCartaNutricional::label(2), 'icon' => 'list', 'url' => array('index')),
//    array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . NiniosCartaNutricional::label(), 'icon' => 'plus', 'url' => array('create')),
//    array('label' => Yii::t('AweCrud.app', 'Update'), 'icon' => 'pencil', 'url' => array('update', 'id' => $model->id)),
//    array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('AweCrud.app', 'Are you sure you want to delete this item?'))),
    array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')),
);
?>
<div class="row-fluid sortable span9">
    <div class="box">
        <div class="box-header well" data-original-title>
            <h2>
<!--                <i class="icon-list"></i> -->
                <?php echo Yii::t('AweCrud.app', 'View') . ' ' . NiniosCartaNutricional::label(); ?>
            </h2>
            <div class="box-icon">
                <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i> </a> 
            </div>
        </div>

        <div class="box-content">
            <!--<fieldset>
                <legend> <?php echo CHtml::encode($model) ?></legend>-->

            <?php
            $this->widget('bootstrap.widgets.TbDetailView', array(
                'data' => $model,
                'attributes' => array(
//        'id',
                    array(
                        'name' => 'ninios_id',
                        'value' => ($model->ninios !== null) ? CHtml::link($model->ninios, array('/ninios/view', 'id' => $model->ninios->id)) . ' ' : null,
                        'type' => 'html',
                    ),
                    array(
                        'name' => 'carta_nutricional_id',
                        'value' => ($model->cartaNutricional !== null) ? CHtml::link($model->cartaNutricional, array('/cartaNutricional/view', 'id' => $model->cartaNutricional->id)) . ' ' : null,
                        'type' => 'html',
                    ),
                    'fecha',
                    'observaciones',
                ),
            ));
            ?>
            <!--</fieldset-->
        </div>
    </div>
</div>